import request from '@/utils/request'

// 查询退休金发放列表
export function listPensionRecord(query) {
  return request({
    url: '/system/pensionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询退休金发放详细
export function getPensionRecord(id) {
  return request({
    url: '/system/pensionRecord/' + id,
    method: 'get'
  })
}

// 新增退休金发放
export function addPensionRecord(data) {
  return request({
    url: '/system/pensionRecord',
    method: 'post',
    data: data
  })
}

// 修改退休金发放
export function updatePensionRecord(data) {
  return request({
    url: '/system/pensionRecord',
    method: 'put',
    data: data
  })
}

// 删除退休金发放
export function delPensionRecord(id) {
  return request({
    url: '/system/pensionRecord/' + id,
    method: 'delete'
  })
}
